package com.baike.feign;

import com.baike.data.Result;
import com.baike.entity.TbContent;
import com.baike.entity.Test;
import com.baike.feign.fallback.AdvertisingServiceFeignBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "baike-education-advertising-service",fallback = AdvertisingServiceFeignBack.class)//服务名,找到项目
public interface AdvertisingServiceFeign {

    //广告表添加接口
    @PostMapping("/tbContent/add")
    Result insertContentInfo(@RequestBody TbContent tbContent);

}
